package learn.spring.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import learn.spring.api.entity.Role;
import learn.spring.api.mapper.RoleMapper;
import learn.spring.api.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chins
 * @since 2021-12-18
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<String> getRolesByIds(List<String> roleIds) {
        return roleMapper.selectRolesByIds(roleIds);
    }
}
